package com.ibeeking.found.msg.rest.service;

import javax.mail.MessagingException;
import java.security.GeneralSecurityException;
import java.util.List;
import java.util.Map;

/**
 * @ClassName ISendSysMsgService
 * @Description 发送系统消息
 * @Author ibeeking
 * @Date 2020-12-10 9:21
 **/
public interface ISendSysMsgService {

    /**
     * 发送简单系统消息
     *
     * @param receiverType:1=会员端；2=商户端；3=租户端
     * @param content
     * @return
     * @throws MessagingException
     * @throws GeneralSecurityException
     */
    Boolean sendSysSimpleMsg(Long tenantId, Integer receiverType, List<Long> receiverIds, String subject, String content) ;

    /**
     * 发送模板消息
     *
     * @param templateCode
     * @param receiverType:1=会员端；2=商户端；3=租户端
     * @param templateData
     * @return
     */
    Boolean sendSysTemplateMsg(Long tenantId, String templateCode, Integer receiverType, List<Long> receiverIds, Map<String, String> templateData);
}
